﻿@model TZL.Data.News
<div class="breadcrumbs">
    <div class="container">
        <h1 class="pull-left blogtitle">Blog</h1>
        <ul class="pull-right breadcrumb">
            <li><a href="/home/index">首页</a></li>
            <li><a href="/news/index/@Model.CategoryId" class="blogtitle">Blog list</a></li>
            <li class="active">详情</li>
        </ul>
    </div>
</div><!--/breadcrumbs-->
<!--=== End Breadcrumbs ===-->
<!--=== Content Part ===-->
<div class="container content blog-page blog-item">
    <!--Blog Post-->
    <div class="blog margin-bottom-40">
        @*<div class="blog-img">
                <img class="img-responsive" src="@Model.ImgUrl" alt="">
            </div>*@
        <h2>@Model.Title</h2>
        <div class="blog-post-tags">
            <ul class="list-unstyled list-inline blog-info">
                <li><i class="fa fa-calendar"></i> @Model.PublishTime.ToString("yyyy-MM-dd")</li>
                <li><i class="fa fa-tags"></i> @Model.Tag</li>
            </ul>
        </div>
        @Html.Raw(Model.Content)
    </div>
    <!--End Blog Post-->
</div><!--/container-->

@section scripts{
    <script>
        $(function () {
            if (sessionStorage.getItem("bloglist")) {
                $(".blogtitle").html(sessionStorage.getItem("bloglist"))
            } else {
                window.location.href = "/home/index";
            }
        })
    </script>
}